﻿<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<HTML>
	<title>类型管理</title>
	<HEAD>
		<LINK href="./jsp/manage/css/list.css" type=text/css rel=stylesheet> 
	</HEAD>

<body  topmargin="0">
<FORM name=myform method=post target="_self"
	action="<%=request.getContextPath()%>/typeManage.do?method=typeadddel">
  <table class="data" cellspacing=1 cellpadding=2 width="100%" border=0>
    <tbody>
		<tr >
			<td height=22 colspan="10" align=middle nowrap="nowrap" >
				<div align="left">
					<strong>父节点-${fatherValue}</strong><FONT color=#ff0000>  注意：一级类目不允许添加和删除</font>
				</div>
			</td>
		</tr>
		<tr>
	        <th width=34 align=left nowrap="nowrap">
	        	选择
	        </th>
	        <th width=73 align=left nowrap="nowrap">
	        	<div align="center">序号</div>
	        </th>
	        <th width=105 align=left nowrap="nowrap">
	        	<div align="center">ID</div>
	        </th>
	        <th colspan="2" align=left nowrap="nowrap">
				<div align="center">分类标识</div>
			</th>
	        <th colspan="2" align=left nowrap="nowrap">
	        	<div align="center">类别名称</div>
	        </th>
	        <th colspan="2" align=left nowrap="nowrap">
	        	<div align="center">类别描述</div>
	        </th>
        </tr>
       	<logic:iterate id="sortmap" name="sortlist" indexId="count">
          		<c:if test="${count%2==1}">
				<c:set var="rowtype" value="odd" />
			</c:if>
			<c:if test="${count%2==0}">
				<c:set var="rowtype" value="even" />
			</c:if> 
			<tr class="${rowtype}" onMouseOver="this.className = 'row_over';" onMouseOut="this.className = '${rowtype}';">
		        <td width=34 align=left nowrap="nowrap">&nbsp;
		            <input type="radio" id="deletesortid" name="deletesortid" value="${sortmap.sortMapId}">
		        </td>
		        <td width=73 align=left nowrap="nowrap"><div align="center">${count+1}</div></td>
		        <td width=105 align=left nowrap="nowrap"><div align="center">${sortmap.sortMapId}</div></td>
		        <td colspan="2" align=left nowrap="nowrap">	<div align="center">&nbsp;${sortmap.type}</div></td>
		        <td colspan="2" align=left nowrap="nowrap">	<div align="center">${sortmap.value}</div></td>
		        <td colspan="2" align=left nowrap="nowrap">	<div align="center">${sortmap.description}</div></td>
        	</tr>
		</logic:iterate>
		<tr>
	        <td colspan="3" align=middle>
	        	<input name="Delete" type="submit" id="Delete" value="删除选中类型">
	        </td>
		</tr>
		<tr>
        	<td colspan="2" align=middle>
        		<input id="sortid" type="hidden"  name="sortid" value="${sortid}" >    
				<input id="sortcount" type="hidden"  name="sortcount" value="${count+1}" >
				分类标识
			</td>
			<td align=middle><input id="type" maxlength=100 size=15  name="type"></td>
			<td width="47" align=middle>类别名称</td>
			<td width="109" align=middle>
				<input id="value" maxlength=100 size=15  name="value">
			</td>
			<td width="55" align=middle>类别描述</td>
			<td width="105" align=middle>
				<input id="description" maxlength=100 size=15  name="description">
			</td>
			<td align=middle>
			<input name="Add"  type="submit" id="Add" value="添加" ></td>
      </tr>
    </tbody>
  </table>
</FORM>

</body>
</html>
